#pragma once
#include "DlgPage1.h"
#include "DlgPage2.h"
#include "DlgPage3.h"
#include "DlgPage4.h"
#include "DlgPage5.h"
#include "W_fxxk.h"
#include "W_cqrk.h"
#include "W_role.h"
#include "W_right.h"
#include "W_user.h"
#include "W_user1.h"
#include "W_business.h"
#include "W_business_edff.h"
#include "W_business_edff1.h"
#include "W_business1.h"
#include "W_yhzc.h"
#include "W_yhzc_sh.h"
#include "W_mrdjsd.h"
#include "W_chgpass.h"
#include "W_hykzdjsd.h"
#include "W_posuser.h"
#include "W_gpjsq.h"
#include "W_gpjsh.h"
#include "W_cqlscx.h"
#include "W_xflscx.h"
#include "W_xfhzcx.h"
#include "W_zkzzk.h"
#include "W_zkjezk.h"
#include "W_zkjeff.h"
#include "W_edffls.h"
#include "W_edffhz.h"
#include "W_cqhzcx.h"
#include "W_grjyjl.h"
#include "W_zkblsd.h"
#include "W_kpgs.h"
#include "W_kpjg.h"
#include "W_dsbk.h"
#include "W_cqcd.h"
#include "W_hykkcx.h"
#include "W_wdgpcx.h"
#include "W_edfbmx.h"
#include "W_hymmxg.h"
#include "Global.h"

// CMyTabCtrl
typedef vector<int> TabDlgOlderVec;
typedef TabDlgOlderVec::iterator TabDlgVecIt;
class CMyTabCtrl : public CTabCtrl
{
	DECLARE_DYNAMIC(CMyTabCtrl)

public:
	CMyTabCtrl();
	virtual ~CMyTabCtrl();
	virtual BOOL PreTranslateMessage( MSG* pMsg );
	
protected:
	DECLARE_MESSAGE_MAP()
public:
	TabDlgOlderVec m_TabDlgVec;
	CDlgPage1			*m_dlgPage1;
	CDlgPage2			*m_dlgPage2;
	CDlgPage3			*m_dlgPage3;
	CDlgPage4			*m_dlgPage4;
	CDlgPage5			*m_dlgPage5;
	CW_fxxk				*w_fxxk;
	CW_cqrk				*w_cqrk;
	CW_role				*w_role;
	CW_right			*w_right;
	CW_user				*w_user;
	CW_user1			*w_user1;
	CW_business			*w_business;
	CW_business_edff	*w_business_edff;
	CW_business1		*w_business1;
	CW_business_edff1	*w_business_edff1;
	CW_yhzc				*w_yhzc;
	CW_yhzc_sh			*w_yhzc_sh;
	CW_chgpass			*w_chgpass;
	CW_mrdjsd			*w_mrdjsd;
	CW_hykzdjsd			*w_hykzdjsd;
	CW_posuser			*w_posuser;
	CW_gpjsq			*w_gpjsq;
	CW_gpjsh			*w_gpjsh;
	CW_cqlscx			*w_cqlscx;
	CW_cqhzcx			*w_cqhzcx;
	CW_xflscx			*w_xflscx;
	CW_xfhzcx			*w_xfhzcx;
	CW_zkzzk			*w_zkzzk;
	CW_zkjezk			*w_zkjezk;
	CW_zkjeff			*w_zkjeff;
	CW_edffls			*w_edffls;
	CW_edffhz			*w_edffhz;
	CW_grjyjl			*w_grjyjl;
	CW_zkblsd			*w_zkblsd;
	CW_kpgs				*w_kpgs;
	CW_kpjg				*w_kpjg;
	CW_dsbk				*w_dsbk;
	CW_cqcd				*w_cqcd;
	CW_hykkcx			*w_hykkcx;
	CW_wdgpcx			*w_wdgpcx;
	CW_edfbmx			*w_edfbmx;
	CW_hymmxg			*w_hymmxg;

	void DeleteTabItem();
	void ReleasePageDlg();
	void ShowTabPageDlg(int nSel,int nDlgFlg=-1);
	void SetCurSelByTreeData(DWORD_PTR nDlgFlag);
	void HideAllPage();
	afx_msg void OnSize(UINT nType, int cx, int cy);
};


